﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ClassLibrary.DAO;
using ClassLibrary.Entitty;

public partial class lantruyen : System.Web.UI.Page
{
    TblInforDAO inforDAO = new TblInforDAO(Global.CONNECTION_STRING);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadInfo();
        }
    }

    private void LoadInfo()
    {
        string id = Request.QueryString["id"];
        string id1 = Request.QueryString["idtype"];

        if (id == null && id1 == null || id =="" && id1 =="")
        {
            TblInformaton dt = inforDAO.GetInfo_ByMenu(5, 15);
            //TblInformaton dt = inforDAO.GetInfo_ByMenu(Global.ConvertToInt(id), Global.ConvertToInt(id1));
            lbInfor.Text = Server.HtmlDecode(dt.Information);
        }
        else
        {
            TblInformaton dt = inforDAO.GetInfo_ByMenu(Global.ConvertToInt(id), Global.ConvertToInt(id1));
            lbInfor.Text = Server.HtmlDecode(dt.Information);
        }
      

    }
}
